package com.yz.vi.commons.exception;

import com.yz.vi.commons.base.enums.MSEnum;

/**
 * @description: 业务异常
 * @author: yutingting
 * @create: 2021-01-17 12:28
 **/
public class MSBizNormalException extends MSException{
    private static final long serialVersionUID = 970770570278173142L;

    public MSBizNormalException() {
    }

    public MSBizNormalException(String errorCode, String errorMsg) {
        super(errorCode, errorMsg);
    }

    public MSBizNormalException(MSEnum enums) {
        super(enums);
    }

    public MSBizNormalException(String errorCode, String errorMsg, Throwable throwable) {
        super(errorCode, errorMsg, throwable);
    }

    public String toString() {
        return "MSBizNormalException()";
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof MSBizNormalException)) {
            return false;
        } else {
            MSBizNormalException other = (MSBizNormalException)o;
            return other.canEqual(this);
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof MSBizNormalException;
    }

    public int hashCode() {
        int result = 1;
        return result;
    }
}
